An E cient Graph Coloring Algorithm for Stencil-based Jacobian Computations

نویسندگان

  • Michael Lülfesmann
  • Martin Bücker
چکیده

Numerical methods for the solution of partial di↵erential equations constitute an important class of techniques in scientific computing. Often, the discretization is based on approximating the partial derivatives by finite di↵erences on a regular Cartesian grid. The resulting computations are structured in the sense of updating a large, multidimensional array by a stencil operation. A stencil defines the update of the value at a grid point based on values at neighboring grid points. We consider the problem of computing the Jacobian matrix of some functions that is given in the form of a computer program involving stencil operations on a regular Cartesian grid. Due to the stencil operations this Jacobian matrix is sparse. The exploitation of the stencil-type to compute this sparse Jacobian matrix using automatic di↵erentiation with minimal computational e↵ort can be modeled as a graph coloring problem [1]. By definition, exact solutions of this combinatorial optimization problem use the minimal number of colors. Exact solutions in terms of explicit formuae are known for various stencil types [2, 4, 5]. However, a formula for the exact solution is not readily available for an arbitrary stencil type. So, by ignoring any structure implied by a given stencil, it is not uncommon to use coloring heuristics for general graphs. These heuristics try to approximate the exact solution and will, most likely, not attain the minimal number of colors. Recently, Lülfesmann and Kawarabayashi [3] introduced a graph coloring algorithm for an arbitrary stencil on a regular multidimensional Cartesian grid that computes the exact solution. This algorithm eliminates the need for deriving an explicit formula for the exact solution. It is based on a divide-and-conquer approach that establishes a hierarchy of vertex separators that recursively decomposes the grid into smaller and smaller subgrids. The main advantage of this algorithm is that it always computes a coloring with the minimal number of colors. However, the disadvantage of this algorithm is its high computational complexity. In fact, there are problem instances reported in [3] where, compared to the running time of a traditional graph coloring heuristic, the running time of this algorithm is larger than a factor of more than 800. So, there is urgent need to look for alternative ways to compute exact solutions of this structured graph coloring problem while reducing the resulting running time. In this extended abstract we propose a novel graph coloring algorithm for stencil-based Jacobian computations on a regular …

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Full and partial Jacobian computation via graph coloring : algorithms and applications

Simulations and optimizations are carried out to investigate real-world problems in science and engineering. For instance, solving systems of linear equations with sparse Jacobian matrices is mandatory when using a Newton-type algorithm. The sparsity of Jacobian matrices is exploited and only a subset of the nonzero elements is determined to successfully reduce the usage of the restricting reso...

متن کامل

A Novel Approach for Detecting Relationships in Social Networks Using Cellular Automata Based Graph Coloring

All the social networks can be modeled as a graph, where each roles as vertex and each relationroles as an edge. The graph can be show as G = [V;E], where V is the set of vertices and E is theset of edges. All social networks can be segmented to K groups, where there are members in eachgroup with same features. In each group each person knows other individuals and is in touch ...

متن کامل

Data Hiding Method Based on Graph Coloring and Pixel Block‘s Correlation in Color Image

An optimized method for data hiding into a digital color image in spatial domainis provided. The graph coloring theory with different color numbers is applied. To enhance thesecurity of this method, block correlations method in an image is used. Experimental results showthat with the same PSNR, the capacity is improved by %8, and also security has increased in themethod compared with other meth...

متن کامل

A practical algorithm for [r, s, t]-coloring of graph

Coloring graphs is one of important and frequently used topics in diverse sciences. In the majority of the articles, it is intended to find a proper bound for vertex coloring, edge coloring or total coloring in the graph. Although it is important to find a proper algorithm for graph coloring, it is hard and time-consuming too. In this paper, a new algorithm for vertex coloring, edge coloring an...

متن کامل

Sparse Jacobian Computation Using ADIC2 and ColPack

Many scientific applications benefit from the accurate and efficient computation of derivatives. Automatically generating these derivative computations from an applications source code offers a competitive alternative to other approaches, such as less accurate numerical approximations or labor-intensive analytical implementations. ADIC2 is a source transformation tool for generating code for co...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014